﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MMDemo
{
    class NewTreeData : InterfaceNewData
    {
        public bool NewData()
        {
            switch (GlobalTree.operateType)
            {
                case OperateTypeTree.Directory:
                default:
                    InitTree(); break;
            }
            return PublicDataClass.IsInit;
        }

        public void InitTree()
        {
            TreeCreatForm ttcf = new TreeCreatForm();
            ttcf.ShowDialog();
        }

        public void ShowForm(SysDemoForm demof, SysArithmeticForm arif, int Width, int Height)
        {
            demof.Top = 0;
            demof.Left = 0;
            demof.Width = Width * 3 / 5;
            demof.Height = Height;
            demof.Show();

            arif.Top = 0;
            arif.Left = Width * 3 / 5;
            arif.Width = Width * 2 / 5;
            arif.Height = Height;
            arif.Show();
        }
    }
}